/**
 * 
 */
package edu.gtcfla.km.admin.appmodules.vo;

import java.util.Date;

import org.vsg.biz.BusinessEntityFactory;
import org.vsg.biz.account.User;
import org.vsg.common.web.jackson.JsonDateSerializer;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

/**
 * @author Bill Vison
 *
 */
@JsonIgnoreProperties(value = {"entity"})
public class SysUserFormVO implements java.io.Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -6968547986643247593L;

	private User entity;
	
	private String createdUser;
	
	private String updatedUser;
	
	private String ownedUser;
	
	private static BusinessEntityFactory entityFactory = BusinessEntityFactory.getInstance();
	
	public SysUserFormVO(User sysUser) {
		this.entity = sysUser;
	}
	
	public SysUserFormVO() {
		this.entity = entityFactory.create(User.class);
		
	}

	public void setPassword(String newPassword) {
		entity.setPassword(newPassword);
	}

	public String getPassword() {
		return entity.getPassword();
	}

	public String getEmail() {
		return entity.getEmail();
	}

	public void setEmail(String email) {
		entity.setEmail(email);
	}

	public String getQq() {
		return entity.getQq();
	}

	public void setQq(String qq) {
		entity.setQq(qq);
	}

	public String getMobilephone() {
		return entity.getMobilephone();
	}

	public void setMobilephone(String mobilephone) {
		entity.setMobilephone(mobilephone);
	}

	public String getOfficephone() {
		return entity.getOfficephone();
	}

	public void setOfficephone(String officephone) {
		entity.setOfficephone(officephone);
	}

	public Date getExpiredDate() {
		return entity.getExpiredDate();
	}

	public void setExpiredDate(Date expiredDate) {
		entity.setExpiredDate(expiredDate);
	}

	public void setId(String newId) {
		entity.setId(newId);
	}

	public String getId() {
		return entity.getId();
	}

	public void setCode(String newCode) {
		entity.setCode(newCode);
	}

	public String getCode() {
		return entity.getCode();
	}

	public void setName(String newName) {
		entity.setName(newName);
	}

	public String getName() {
		return entity.getName();
	}

	public void setRemark(String newDescription) {
		entity.setRemark(newDescription);
	}

	public String getRemark() {
		return entity.getRemark();
	}

	public void setCreatedDate(Date newCreatedDate) {
		entity.setCreatedDate(newCreatedDate);
	}

	@JsonSerialize(using=JsonDateSerializer.class)		
	public Date getCreatedDate() {
		return entity.getCreatedDate();
	}

	public void setDisabled(short newFlagDisable) {
		entity.setDisabled(newFlagDisable);
	}

	public short getDisabled() {
		return entity.getDisabled();
	}

	public void setFlagDeleted(short newFlagDeleted) {
		entity.setFlagDeleted(newFlagDeleted);
	}

	public short getFlagDeleted() {
		return entity.getFlagDeleted();
	}

	@JsonSerialize(using=JsonDateSerializer.class)		
	public Date getUpdatedDate() {
		return entity.getUpdatedDate();
	}

	public void setUpdatedDate(Date updatedDate) {
		entity.setUpdatedDate(updatedDate);
	}

	public String getCreatedUserId() {
		return entity.getCreatedUserId();
	}

	public void setCreatedUserId(String createdUserId) {
		entity.setCreatedUserId(createdUserId);
	}

	public String getUpdatedUserId() {
		return entity.getUpdatedUserId();
	}

	public void setUpdatedUserId(String updatedUserId) {
		entity.setUpdatedUserId(updatedUserId);
	}

	public String getOwnedUserId() {
		return entity.getOwnedUserId();
	}

	public void setOwnedUserId(String ownedUserId) {
		entity.setOwnedUserId(ownedUserId);
	}

	public String getCreatedUser() {
		return createdUser;
	}

	public void setCreatedUser(String createdUser) {
		this.createdUser = createdUser;
	}

	public String getUpdatedUser() {
		return updatedUser;
	}

	public void setUpdatedUser(String updatedUser) {
		this.updatedUser = updatedUser;
	}

	public String getOwnedUser() {
		return ownedUser;
	}

	public void setOwnedUser(String ownedUser) {
		this.ownedUser = ownedUser;
	}

	public User getEntity() {
		return entity;
	}

	public void setEntity(User entity) {
		this.entity = entity;
	}

	
	
}
